PGetPageNumberByID(unsigned long nPageID);
Specify a PageMaker internal ID to look up.
The query returns a single short value representing the current page number.Page ID stays with page. While the number of a page may change (if you insert or delete a page), its ID remains the same: A page is independent of its page number (see example below).
If you assign some private data to a page and the page is subsequently renumbered, you can still access the private data using the page ID.
Example.
PNew(20);
// create new 20 page publication
// get page ID for page 15
PGetPageID page15id(15);
// remove two pages
PRemovePages(13, 14);
...
PGetPageNumberByID newPageNum(page15id);
if (newPageNum == 13)
Comments or suggestions? Contact Adobe Developer Support